package com.xjgc.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TransNoUitl {
    public static String genTransNo(){
        Date date=new Date();
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyyMMddHHmmssSSS");
        String transNO=simpleDateFormat.format(date)+(int)(((Math.random()*9+1)*100000));
        return transNO;
    }

    public static void main(String[] args) {
        System.out.println((int)((Math.random()*9+1)*100000));
    }
}
